import React, { PureComponent } from 'react';
import { Icon } from '@/components'
import {history} from 'umi';
import testPaperImg from '@/assets/test-paper.png';
import styles from './index.less';

interface OwnerProps {
  
  type: 1 | 2 | 3 | 4;  // 1模拟练习2:模拟考试3:正式考试 4:预约考试
}
class Index extends PureComponent<OwnerProps,any> {
  render() {
    return (
      <div className={styles.end}>
        <div className={styles.test_paper}>
          <img alt="" src={testPaperImg} className={styles.test_paper_img} />
        </div>
        <div>
          <div className={styles.tips}>
            <Icon className={styles.icon} type='iconic_component_select_light' />
            <div className={`${styles.text} ${styles.pass}`}>您已完成正式考试</div>
          </div>
          <div className={styles.button_wrap} >
            <div onClick={() => history.push(`/peixun/${sessionStorage.getItem('code')}`)} className={styles.back}>返回首页</div>
          </div>
        </div>
          
        
      </div>
    )
  }
}

export default Index;

